<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>邀请下级</title>
		<script src="js/mui.min.js"></script>
		<link href="css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" href="css/base.css" />
		<script src="js/flexible.js"></script>
		<link rel="stylesheet" href="css/yaoqingxiaji.css" />
		<script src="js/jquery-3.1.1.js"></script>
		<script src="js/confi.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript" src="js/qrcode.js"></script>

	</head>

	<body>
		<header class="mui-bar mui-bar-nav">
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
			<h1 class="mui-title">邀请下级</h1>
		</header>
		<div id="bgc">
		</div>
		<div id="erweima">
			<span id="erweimaI">团队的休闲聚集地，一起瓜分亿级市场</span>
		</div>
		<div id="bg">
		</div>
		<span id="logo"></span>
		<script type="text/javascript">
			var token = localStorage.getItem('token');
			//个人资料显示
						mui.ajax(config.host + '/home/User/qrcode', {
							headers: {
								'token': token
							},
							dataType: 'json', //服务器返回json格式数据
							type: 'get', //HTTP请求类型	              
							success: function(data) {
								if(data.code == 200) {
									var downHref = 'http://cherry.guojinkj123.com/yt/phone.html?code=' + data.data.code;
									//生成二维码
									var qrcode = new QRCode(document.getElementById("bg"), {
										width: 165,
										height: 175,
										colorDark: "#000000",
										colorLight: "#ffffff",
										correctLevel: QRCode.CorrectLevel.H
									});
									qrcode.makeCode(downHref);
								} else {
									mui.toast(data.msg)
								}
							}
						});
		 
			 
		</script>
	</body>

</html>